<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="lijun; 67086071; zwlijun@qq.com" />
<title>RIA Client API - BY 小网</title>
<link href="css/api.css" type="text/css" rel="stylesheet" />
</head>

<body>
  <ins>此文档描述Loader对象的方法和属性</ins>
  <div class="nav">
    <a href="#parent">parent</a>
    <a href="#Loader">Loader()</a>
    <a href="#loadScript">loadScript()</a>
    <a href="#loadScriptByTimeout">loadScriptByTimeout()</a>
    <a href="#loadFrame">loadFrame()</a>
    <a href="#loadFrameByTimeout">loadFrameByTimeout()</a>
  </div>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">parent属性<a name="parent"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>引用RIAClient对象</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>var parent = loader.parent;</td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>引用RIAClient对象</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
var loader = new Loader();
var parent = loader.parent;
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">Loader构造方法<a name="Loader"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>构造方法</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>var loader = new Loader();</td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>构造方法</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
var loader = new Loader();
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">loadScript方法<a name="loadScript"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>动态加载javascript文件</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>
<pre>
loader.loadScript(
  url, 
  handler, 
  args, 
  charset, 
  defer, 
  isDestory
)
</pre>
        </td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>动态加载javascript文件</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
loader.loadScript(
  "data/config.js", 
  null, 
  [], 
  "utf-8", 
  false, 
  false);
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">loadScriptByTimeout方法<a name="loadScriptByTimeout"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>动态加载javascript文件</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>
<pre>
loader.loadScriptByTimeout(
  url, 
  handler, 
  args, 
  charset, 
  defer, 
  isDestory,
  interval
)
</pre>
        </td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>动态加载javascript文件，有超时处理机制。</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
loader.loadScriptByTimeout(
  "data/config.js", 
  null, 
  [], 
  "utf-8", 
  false, 
  false,
  3000
);
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">loadFrame方法<a name="loadFrame"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>通过iframe加载数据</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>
<pre>
loader.loadFrame(
  url, 
  handler, 
  args, 
  responseObj, 
  isDestory, 
  _parent
)
</pre>
        </td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>通过iframe加载数据</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
loader.loadFrame(
  "data/config.html", 
  dealLoaded, 
  [], 
  "config", 
  true, 
  null
);
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">loadFrameByTimeout方法<a name="loadFrameByTimeout"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>通过iframe加载数据</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>
<pre>
loader.loadFrameByTimeout(
  url, 
  handler, 
  args, 
  responseObj, 
  isDestory, 
  _parent,
  interval
)
</pre>
        </td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>通过iframe加载数据，有超时处理机制</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
loader.loadFrameByTimeout(
  "data/config.html", 
  dealLoaded, 
  [], 
  "config", 
  true, 
  null,
  3000
);
</pre>
        </td>
      </tr>
    </tbody>
  </table>
</body>
</html>